package conector;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class conector {

	private String serverName = "localhost";
	private String user = "root";
	private String password = "12345";
	private String dataBase = "pizzaria";

	public Connection getConnection() throws SQLException,
			ClassNotFoundException {
		Class.forName("com.mysql.jdbc.Driver");
		return DriverManager.getConnection("jdbc:mysql://" + serverName + "/"
				+ dataBase, user, password);
	}

}